package com.example.admin.service;


import com.example.xo.pojo.Category;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 992c
 */
@Transactional
public interface CategoryService {
    public boolean add(Category category);

    public List<Category> findAll();

    public Category findById(String id);

    public Category findByName(String name);

    public boolean deleteById(String id);

    public boolean update(Category category);
}
